import { rewriteUrlToSocket } from '@/utils/utils';

// marked
const URL = process.env.API_ENV, M_URL = process.env.MOCK;
const baseUrl = URL ? `/${URL}` : window.baseUrl_G;
const socketUrl = URL ? `ws://192.168.3.${URL}:9998/ws/` : (M_URL ? `ws://192.168.3.${M_URL}:19999/ws/` : rewriteUrlToSocket(window.socketUrl_G));
export { baseUrl, socketUrl }
